package com.mulanweb.handler.wechat;


import java.util.TimerTask;

/**
 * Created by Administrator on 2016/8/16.
 */
public class TokenTimerHandler extends TimerTask
{
    @Override
    public void run(){
        String token =TokenHandler.refreshAccessToken();
        if (token !=null) {
            System.out.println("刷新access_token成功,token值为："+token);
        }else{
            this.run();
        }
    }
}
